import org.gradle.api.DefaultTask
import org.gradle.api.tasks.TaskAction

class FirUploadTask extends DefaultTask {

    @TaskAction
    void doAction() {
        println "打包前"
        project.tasks.findByName("assembleRelease").doLast {
            println "打包后"
        }
    }

}